<!DOCTYPE html>
<html lang="en">
<head>
	<meta content="width=device-width,initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
	<meta name="apple-mobile-web-app-capable" content="no" />
	<meta charset="UTF-8">
	<title> {{.info.title}}</title>
	<style type="text/css"></style>
	<link rel="stylesheet" type="text/css" href="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/css/composition.css">
	<link rel="stylesheet" type="text/css" href="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/frame/sui/Css/SUI.css">
	<link rel="stylesheet" type="text/css" href="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/frame/sui/Font/iconfont.css">
	<style type="text/css">
	.composition img{width: 100% !important;height: auto !important;}
	</style>
</head>
<body>
	<h1>{{.info.title}}</h1>
	<div class="info">
		<i class="iconfont">&#xe75e;</i><span class="time">{{.info.addtime}}</span>
		<!-- <span class="author">桃子话</span> -->
		<i class="iconfont">&#xe6e7;</i><span class="click">{{.info.click}}</span>
		<!-- <i class="iconfont">&#xe6ef;</i><span class="readtime">13:50</span> -->
	</div>
	<div class="description">{{.info.intr}}</div>
	<div class="composition">
		{{if .info.content}}
		{{str2html .info.content}}
		{{end}}
	</div>
	<!-- <p class="suiTag top10 noStrong">全部评论</p>
	<div class="reply">
		<dl>
			<dt class="suiBgImg goto" style="background-image: url(../img/avatar.jpeg)"></dt>
			<dd>Master<span class="suiFR">19:30</span></dd>
			<dd>评论内容</dd>
		</dl>
	</div>
	<div class="input">
		<input type="text" placeholder="写评论..." name="reply">
		<span class="butt">发布</span>
	</div> -->
</body>
{{template "wechat/public/share.html" .}}
<script type="text/javascript">
	// 评论
	// var cont = document.querySelector("input[name=reply]");
	// document.querySelector(".butt").onclick = function(){
	// 	if (cont.value == "") {
	// 		sui.toast({
	// 			text:'请输入评论'
	// 		})
	// 	}else {
	// 		sui.ajax({
	// 			method:'post',
	// 			url:'url',
	// 			data:"value="+cont.value+"&id="+location.href.split("?")[1].split("=")[1]+"&uid="+localStorage.getItem("user"),
	// 			success:function(res){
	// 				if (res == 1) {
	// 					sui.toast({
	// 						text:'发布成功'
	// 					})
	// 					cont.value = ""
	// 				}else if (res == -1){
	// 					sui.toast({
	// 						text:'发布失败'
	// 					})
	// 				}else if (res == 0) {
	// 					sui.toast({
	// 						text:'暂未登录'
	// 					})
	// 				}
	// 			}
	// 		})
	// 	}
	// }
</script>
</html>